@model OurWedding1.Models.Task

@{
    ViewBag.Title = "Details";
}
@Html.Partial("TasksHeading")
<h2>Details</h2>

<fieldset>
    <legend>Task</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">Deadline</div>
    <div class="display-field">@String.Format("{0:g}", Model.Deadline)</div>

    <div class="display-label">isDone</div>
    <div class="display-field">@Model.isDone</div>

    <div class="display-label">Expens</div>
    <div class="display-field">@(Model.Expens == null ? "None" : Model.Expens.Name)</div>

    <div class="display-label">Guest</div>
    <div class="display-field">@(Model.Guest == null ? "None" : Model.Guest.Name)</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.TaskId }) |
    @Html.ActionLink("Back to List", "Index")
</p>


